import request from '@/utils/request'

// 产品列表
export function productList(params) {
  return request({
    url: '/mapi/product/list',
    method: 'get',
    params
  })
}

// 产品详情
export function productInfo(params) {
  return request({
    url: '/mapi/product/info',
    method: 'get',
    params
  })
}

// 产品新增/编辑
export function productEdit(params) {
  return request({
    url: '/mapi/product/edit',
    method: 'post',
    params
  })
}

// 删除
export function productDelete(params) {
  return request({
    url: '/mapi/product/delete',
    method: 'post',
    params
  })
}
